package team2;

/**
 * A class that holds all of the information vital to a document.
 * @author Brett Hlavinka
 */
public class Document
{
    private String title;
    private String fullText;
    private Vector vector;

    /**
     * The default constructor for a Document.
     * @param title The title of the document.
     * @param fullText The full text of the document.
     */
    public Document(String title, String fullText)
    {
        this.title = title;
        this.fullText = fullText;
        this.vector = new Vector(fullText);
    }

    /**
     * Accessor method that gives the title of the document.
     * @return The title of the document.
     */
    public String getTitle()
    {
        return this.title;
    }

    /**
     * Accessor method that gives the full text of the document.
     * @return The full text of the document.
     */
    public String getFullText()
    {
        return this.fullText;
    }

    /**
     * Accessor method that gives the vector of the document.
     * @return The vector of the document.
     */
    public Vector getVector()
    {
        return this.vector;
    }
}
